<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/3/30 0030
 * Time: 14:43
 */
return [
    'ws' => [
        //是否开启http解析
        'host' => '0.0.0.0',                 //服务监听ip
        'port' => 9504,                      //监听端口
        'enable_tcp' => true,                //是否开启tcp解析
        'enable_http' => true,               //是否开启http解析
        'ws_setting' => [                //swoole配置
            'worker_num' => 1,              //worker进程数量
            'daemonize' => 0,               //是否开启守护进程
            'pack_max_length' => 1024 * 1024 * 2,
            'heartbeat_idle_time' => 600,
            'heartbeat_check_interval' => 60,
        ]
    ]
];